package com.kelvem.saas.workbanch.config;

import com.kelvem.saas.workbanch.fsm.container.HandleContainer;
import com.kelvem.saas.workbanch.fsm.handle.Handle;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class AppConfig {

    @Resource
    private HandleContainer handleContainer;
    
    @Bean
    public List<Handle> getHandleList(List<Handle> handleList) {
        for (Handle handle :
                handleList) {
            handleContainer.addHandle(handle);
        }
        return handleList;
    }
    
    
    
    
    
}